package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.MsgModelUnreadDao;
import com.kly.user.db.entity.MsgModelUnreadEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* User: yujianfu
* Date: 2024-05-28
* Time: 17:34:56.967
*/

@Repository
public class MsgModelUnreadDaoImpl extends AbstractBaseMapper<MsgModelUnreadEntity> implements MsgModelUnreadDao {

    @Override
    public List<MsgModelUnreadEntity> getListWithTotalUnreadMsgCntByModels(List<String> modelUserCodes) {
        Map<String, Object> selectUsersParams = new HashMap<>();
        selectUsersParams.put("modelUserCodes", modelUserCodes);
        return this.getSqlSession().selectList(this.getStatement("getListWithTotalUnreadMsgCntByModels"), selectUsersParams);
    }
}